package com.designpattern.creatorpattern.protopyte;

/**
 * @author Administration
 * @date 2021/10/14 - 9:43 - 星期四
 * @project lambda  设计模式之   创建者模式中的原型模式 浅克隆
 * @package com.designpattern.protopyte.dome
 * @by 晨
 */
public class Citation implements Cloneable{
    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return (this.name);
    }

    public void show() {
        System.out.println(name + "同学：在2020学年第一学期中表现优秀，被评为三好学生。特发此状！");
    }

    @Override
    public Citation clone() throws CloneNotSupportedException {
        return (Citation)super.clone();
    }
}
